﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="CarPage.aspx.cs" Inherits="KerriganBlog.AutoPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder" runat="server">


         <div id="middle" style="width : 900px">
 
             <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
                 ForeColor="#333333" GridLines="Horizontal"
                           ShowFooter="True" Width="100%" UseAccessibleHeader="False"
            PageSize="5"
            AllowPaging="True" style="margin-right: 0px" OnPageIndexChanging="GridView1_Paging"  >

            <Columns>

                <asp:TemplateField HeaderText="Articles" HeaderStyle-HorizontalAlign="Center" 
                    ShowHeader="False">
                
                    <ItemTemplate>
                       
                       
                 <table  border="0" cellspacing="0" cellpadding="10" style="width:900px; border-bottom-color:Blue;border-right-color:Blue ">
                     <tr>
                        <td colspan="2" style="font-weight:bold;font-size:22px" > <%# DataBinder.Eval(Container.DataItem, "Title")%> </td>
                     </tr>
                     <tr>
                        <td colspan="2" style="height : 50px"> <%# DataBinder.Eval(Container.DataItem, "ContentTopic") %> </td>
                     </tr>
                     <tr>
                        <td>Posted on :  <%# DataBinder.Eval(Container.DataItem, "Date") %> </td>
                        <td>Write by :  <%# DataBinder.Eval(Container.DataItem, "NickName") %> </td>
                     </tr>
                </table>



                    </ItemTemplate>

<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
                </asp:TemplateField>

   

      

                
   


            </Columns>

                          <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                          <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                          <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                          <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                          <EditRowStyle BackColor="#999999" />
                          <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView>
 
         </div>

         <div id="footer" style="height:50px"></div>
</asp:Content>
